package chapter10;

import java.io.FileWriter;
import java.io.IOException;

public class sort25 {
    public static void main(String[] args) {
        // 创建流对象
        try (
                FileWriter fw = new FileWriter("fw.txt"); ) {
            // 写出数据
            fw.write("程序员"); //程序员
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
